package com.shenjies88.practice.baseframework.tools;

import lombok.AllArgsConstructor;
import org.springframework.ai.tool.ToolCallbackProvider;
import org.springframework.ai.tool.method.MethodToolCallbackProvider;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@AllArgsConstructor
@Configuration
public class ToolsConfig {

    private final DateTimeTools dateTimeTools;
    private final UserTools userTools;

    @Bean
    public ToolCallbackProvider tools() {
        return MethodToolCallbackProvider.builder().toolObjects(dateTimeTools, userTools).build();
    }

}